<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
  <div class="col-md-12">
    <ol class="breadcrumb">
      <li><a href="#/service/addService">主页</a></li>
      <li><a>工单管理</a></li>
      <li class="active"><strong>投诉统计</strong></li>
    </ol>
  </div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-controller="workCensusQueryCtrl">
  <form class="form-horizontal" id="form1" name="horizontalCard">
    <div class="form-group">
      <div class="col-lg-12">
        <div class="tabs-container tab_other">
          <uib-tabset>
            <uib-tab>
              <uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
                      class="font-bold">投诉总量统计</strong>
									</span>
              </uib-tab-heading>
              <div class="panel-body ibox float-e-margins">
                <div class="ibox-content">
                  <div class="row">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">统计日期：</label>
                      <div class="col-sm-6">
                        <input id="d5223" class="form-control" type="datetime" ng-model="infoTeam.dateStrBegin"
                               onchange="" style="width:auto;display:inline-block;" placeholder="请选择开始日期"
                               onFocus="var d5224=$dp.$('d5224');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd',onpicked:function(){d5224.focus();},maxDate:'#F{$dp.$D(\'d5224\')}'})"/>
                        -
                        <input id="d5224" class="form-control" type="datetime" ng-model="infoTeam.dateStrEnd"
                               onchange="" style="width:auto;display:inline-block;" placeholder="请选择结束日期"
                               onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd',minDate:'#F{$dp.$D(\'d5223\')}'})"/>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label"></label>
                      <div class="col-sm-8">
                        <button class="btn btn-primary6 btn-mr20" ng-click="teamQuery(true)">查询</button>
                        <button class="btn btn-primary3 btn-mr20" type="button" ng-click="cancelTeamTable()">清空</button>
                        <button class="btn btn-primary6 btn-mr20" ng-show="hasPermit('workCensus.exportTeamWork')" ng-click="exportTeamWork()">导出</button>
                      </div>
                    </div>
                    <div class="ibox-title">
                      <h5>投诉总量统计</h5>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-2 checkbox">总计:<span ng-bind="countTeam"></span></div>
                    </div>
                    <div class="form-group">
                      <div class="gridStyle" ui-grid="myGridTeam" ui-grid-selection ui-grid-pagination
                           ui-grid-resize-columns ui-grid-pinning></div>
                      <div ng-show="loadImg" class="timg"></div>
                    </div>
                  </div>
                </div>
              </div>
            </uib-tab>

            <uib-tab>
              <uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
                      class="font-bold">一级代理商被投诉排名</strong>
									</span>
              </uib-tab-heading>
              <div class="panel-body ibox float-e-margins">
                <div class="ibox-content">
                  <div class="row">
                    <div class="form-group">
                      <label class="col-sm-2 control-label">代理商：</label>
                      <div class="col-sm-2">
                        <select name="autocomplete-select" id="autocomplete-select2" ng-model="infoAgent2.agentNo"
                                chosen-data="agentList2"
                                ng-options="x.value as x.text for x in agentList2" style="width: 100%" chosen
                                chosen-keyup="getAgentList2">
                        </select>
                      </div>
                      <label class="col-sm-2 control-label">对接经理：</label>
                      <div class="col-sm-2">
                        <select name="autocomplete-select" id="autocomplete-select5" ng-model="infoAgent2.saleName"
                                chosen-data="saleList2"
                                ng-options="x.value as x.text for x in saleList2" style="width: 100%" chosen
                                chosen-keyup="getSaleList2">
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">月份：</label>
                      <div class="col-sm-6">
                        <input id="d5555" class="form-control" type="datetime" ng-model="infoAgent2.dateStrBegin"
                               onchange="" style="width:auto;display:inline-block;" placeholder="请选择年月"
                               onFocus="var d5556=$dp.$('d5556');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM',onpicked:function(){d5556.focus();},maxDate:'#F{$dp.$D(\'d5556\')}'})"/>
                        -
                        <input id="d5556" class="form-control" type="datetime" ng-model="infoAgent2.dateStrEnd"
                               onchange="" style="width:auto;display:inline-block;" placeholder="请选择年月"
                               onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM',minDate:'#F{$dp.$D(\'d5555\')}'})"/>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label"></label>
                      <div class="col-sm-8">
                        <button class="btn btn-primary6 btn-mr20" ng-click="agentQuery2(true)">查询</button>
                        <button class="btn btn-primary3 btn-mr20" type="button" ng-click="cancelAgentTable2()">清空
                        </button>
                        <button class="btn btn-primary6 btn-mr20" ng-show="hasPermit('workCensus.exportAgentWork2')" ng-click="exportAgentWork2()">导出</button>
                      </div>
                    </div>
                    <div class="ibox-title">
                      <h5>一级代理商被投诉排名</h5>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-2 checkbox">总计:<span ng-bind="countAgent2"></span></div>
                    </div>
                    <div class="form-group">
                      <div class="gridStyle" ui-grid="myGridAgent2" ui-grid-selection ui-grid-pagination
                           ui-grid-resize-columns ui-grid-pinning></div>
                      <div ng-show="loadImg" class="timg"></div>
                    </div>
                  </div>
                </div>
              </div>
            </uib-tab>


            <uib-tab>
              <uib-tab-heading>
									<span class="block m-t-xs"> <i class="fa fa-laptop"></i> <strong
                      class="font-bold">所属代理商被投诉排名</strong>
									</span>
              </uib-tab-heading>
              <div class="panel-body ibox float-e-margins">
                <div class="ibox-content">
                  <div class="row">

                    <div class="form-group">
                      <label class="col-sm-2 control-label">代理商：</label>
                      <div class="col-sm-2">
                        <select name="autocomplete-select" id="autocomplete-select3" ng-model="infoAgent.agentNo"
                                chosen-data="agentList"
                                ng-options="x.value as x.text for x in agentList" style="width: 100%" chosen
                                chosen-keyup="getAgentList">
                        </select>
                      </div>
                      <label class="col-sm-2 control-label">对接经理：</label>
                      <div class="col-sm-2">
                        <select name="autocomplete-select" id="autocomplete-select4" ng-model="infoAgent.saleName"
                                chosen-data="saleList"
                                ng-options="x.value as x.text for x in saleList" style="width: 100%" chosen
                                chosen-keyup="getSaleList">
                        </select>
                      </div>
                    </div>

                    <div class="form-group">
                      <label class="col-sm-2 control-label">月份：</label>
                      <div class="col-sm-6">
                        <input id="d5555" class="form-control" type="datetime" ng-model="infoAgent.dateStrBegin"
                               onchange="" style="width:auto;display:inline-block;" placeholder="请选择年月"
                               onFocus="var d5556=$dp.$('d5556');WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM',onpicked:function(){d5556.focus();},maxDate:'#F{$dp.$D(\'d5556\')}'})"/>
                        -
                        <input id="d5556" class="form-control" type="datetime" ng-model="infoAgent.dateStrEnd"
                               onchange="" style="width:auto;display:inline-block;" placeholder="请选择年月"
                               onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM',minDate:'#F{$dp.$D(\'d5555\')}'})"/>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label"></label>
                      <div class="col-sm-8">
                        <button class="btn btn-primary6 btn-mr20" ng-click="agentQuery(true)">查询</button>
                        <button class="btn btn-primary3 btn-mr20" type="button" ng-click="cancelAgentTable()">清空
                        </button>
                        <button class="btn btn-primary6 btn-mr20" ng-show="hasPermit('workCensus.exportAgentWork')" ng-click="exportAgentWork()">导出</button>
                      </div>
                    </div>
                    <div class="ibox-title">
                      <h5>所属代理商被投诉排名</h5>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-2 checkbox">总计:<span ng-bind="countAgent"></span></div>
                    </div>
                    <div class="form-group">
                      <div class="gridStyle" ui-grid="myGridAgent" ui-grid-selection ui-grid-pagination
                           ui-grid-resize-columns ui-grid-pinning></div>
                      <div ng-show="loadImg" class="timg"></div>
                    </div>
                  </div>
                </div>
              </div>
            </uib-tab>
          </uib-tabset>
        </div>
      </div>

    </div>
  </form>
</div>